package com.lnsf.bookstore.system.address.vo;

import com.lnsf.bookstore.system.user.vo.User;
import com.lnsf.bookstore.system.vipuser.vo.VipUser;

import java.io.Serializable;

public class Address implements Serializable {
    private Integer id;

    private Integer userId;

    private String receivername;

    private String phone;

    private String province;

    private String city;

    private String area;

    private String address;

    private String code;

    private Integer checked;


    private VipUser vipUser;

    private static final long serialVersionUID = 1L;

    public String getUserName() {
        if(getVipUser()!=null){
            return getVipUser().getUsername();
        }
        return "--";
    }
    public String getVipUserName() {
        if(getVipUser()!=null){
            return getVipUser().getUsername();
        }
        return "--";
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getReceivername() {
        return receivername;
    }

    public void setReceivername(String receivername) {
        this.receivername = receivername;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getChecked() {
        return checked;
    }

    public void setChecked(Integer checked) {
        this.checked = checked;
    }


    public VipUser getVipUser() {
        return vipUser;
    }

    public void setVipUser(VipUser vipUser) {
        this.vipUser = vipUser;
    }
}